package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `json:"account" gorm:"type:varchar(20);not null;comment:账号"`
	Password string `json:"password" gorm:"type:char(32);not null;comment:密码"`
	Mobile   string `json:"mobile" gorm:"type:char(11);not null;comment:手机号"`
	Sex      string `json:"sex" gorm:"type:char(1);not null;comment:性别"`
	Name     string `json:"name" gorm:"type:varchar(20);not null;comment:姓名"`
}
